home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource2
/
sclib_1
/
1_1
/
v7n1062a.txt
< prev
next >
Wrap
Text File
|
1995-11-01
|
1KB
|
53 lines
/*
* dirret.h defines and structures for dir_retrieve()
*
* (c) Copyright 1988 Aspen Scientific
* All Rights Reserved.
*/
/* define only one of the following host systems
*/
/* build under MS-DOS */
#ifndef A_MSDOS
# define A_MSDOS 1
#endif
/* build under Unix */
#ifndef A_UNIX
/** # define A_UNIX 1 **/
#endif
/* define this if you have an ansi c compiler
*/
#define A_ANSI 1
#define ALLOC_UNIT 5 /* allocate at least this much */
/* define the length of each file name under MS-DOS and Unix
*/
#ifdef A_MSDOS
# define _FN_SZ 13 /* sizeof (find_buf.name) */
#else
# include <sys/dir.h>
# define _FN_SZ DIRSIZ+1 /* see sys/dir.h */
#endif
struct dir_retrieve_t {
char name[ _FN_SZ ]; /* file name */
char subdir; /* is it a sub-dir? */
};
#ifdef A_ANSI
extern struct dir_retrieve_t * dir_retrieve( char *, int * );
extern void dir_free( struct dir_retrieve_t * );
#else
# define void int
extern struct dir_retrieve_t * dir_retrieve();
extern void dir_free();
#endif